import React, { Component } from 'react';

class App
 extends Component {

  state={
    checked:true
  }
  handelChange=(e)=>{
    this.setState({
      checked:e.target.checked
    })
  }
  render() {
    return (
      <div>
        <input type="checkbox" name='' id=''
        checked={this.state.checked}
        onChange={this.handelChange}
        />

      </div>
    );
  }
}

export default App
;